package cn.com.cifi.mars.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 回款计划版本表
 * </p>
 *
 * @author JingYuanXiang
 * @since 2020-11-06
 */
@Data
@TableName("t_return_plan_version")
public class ReturnPlanVersion implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;
    @ApiModelProperty(value = "版本类型：cast_decision(投资版)、strategy(战规版)、budget(预算版)、dynamic(动态版)")
    private String versionType;
    @ApiModelProperty(value = "版本号")
    private String versionNum;
    @ApiModelProperty(value = "项目Id")
    private String projectId;
    @ApiModelProperty(value = "分期ID")
    private String stageId;
    @TableField(exist = false,value = "分期名称" )
    private String stageName;
    @ApiModelProperty(value = "版本状态")
    private String versionState;
    @ApiModelProperty(value = "签约计划版本ID")
    private String signPlanVersionId;
    @ApiModelProperty(value = "供货计划版本ID")
    private String supplyPlanVersionId;
    @ApiModelProperty(value = "资源匹配标签")
    private String resourceMatching;
    @ApiModelProperty(value = "年度目标标签")
    private String annualObjectives;
    @ApiModelProperty(value = "归属年份（预算版）")
    private String compileYear;
    @ApiModelProperty(value = "版本标识（预算版 年中/全年）")
    private String versionIdentify;
    @ApiModelProperty(value = "预算版本来源ID")
    private String sourceVersionId;
    @ApiModelProperty(value = "是否是考核版（1--是；0--否）")
    private Integer isAssessment;
    @ApiModelProperty(value = "版本归属时间yyyy-MM")
    private String affiliationMonth;
    @ApiModelProperty(value = "取数来源（明源/NOS）")
    private String dataSource;
    @ApiModelProperty(value = "定稿标识")
    private Integer isFinalization;
    @ApiModelProperty(value = "创建人员")
    private String createBy;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "创建方式 （automatic_create：自动创建、manual_create：手动创建、exception_create：异常创建）")
    private String versionCreate;
    @ApiModelProperty(value = "更新人员")
    private String updateBy;
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;
    @ApiModelProperty(value = "备注说明")
    private String description;
    @ApiModelProperty(value = "是否分期下最新版本")
    private Integer isStageNewest;
    @ApiModelProperty(value = "是否一房一价")
    private Integer isContainSale;


    @TableField(exist = false,value="区域id")
    private String regionId;
    @TableField(exist = false,value="区域名称")
    private String regionName;
    @TableField(exist = false,value="城市公司id")
    private String cityCompanyId;
    @TableField(exist = false,value="城市公司名称")
    private String cityCompanyName;
    @TableField(exist = false,value = "项目编码")
    private String projectCode;
    @TableField(exist = false,value = "项目名称" )
    private String projectName;
}
